<%@ page language="java" import="java.sql.*"
         pageEncoding="UTF-8" %>
<%
    Connection conn = null;
    Statement stmt = null;
    Statement stmt1 = null;
    Statement stmt2 = null;
    Statement stmt3 = null;
    String sDBDriver = "com.mysql.cj.jdbc.Driver";
    String url = "jdbc:mysql:///filedb";

    try {
        //加载数据库驱动
        Class.forName(sDBDriver);
        //获取数据库链接
        conn = DriverManager.getConnection(url, "root", "816601");
        stmt = conn.createStatement(); //创建连接状态
    } catch (Exception e) {
        e.printStackTrace();
        System.err.println("数据库驱动注册错误信息： " + e.getMessage());
    }
%>
